package ar.edu.unq.wannaplay.pages.project;

import org.apache.wicket.spring.injection.annot.SpringBean;

import ar.edu.unq.wannaplay.pages.WPPage;
import ar.edu.unq.wannaplay.panels.project.ProjectsViewPanel;
import ar.edu.unq.wannaplay.services.ProjectService;

public class ProjectsViewPage extends WPPage {

    @SpringBean(name = "service.projectService")
    private ProjectService projectService;

    public ProjectsViewPage() {
        super("Projects View Page");
        this.initialize();
        this.addLanguageSelect();
    }

    @Override
    protected void addMainContent() {
        ProjectsViewPanel panel = new ProjectsViewPanel("mainContent", projectService);
        this.add(panel);
    }

    public ProjectService getProjectService() {
        return projectService;
    }

    public void setProjectService(final ProjectService projectService) {
        this.projectService = projectService;
    }

}
